import request from '@/utils/request'

export function fetchListForm(query) {
  return request({
    url: '/form',
    method: 'GET',
    params: query
  })
}


export function getForm(id){
	return request({
		url: `/form/${id}`,
		method: 'GET'
	})
}

export function saveForm(data){
	return request({
		url: '/form',
		method: 'POST',
		data
	})
}

export function deleteForm(id){
	return request({
		url:`/form/${id}`,
		method: 'DELETE'
	})
}

export function updateForm(data){
	return request({
		url: `/form/${data.Id}`,
		method: 'PUT',
		data
	})
}
